// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'BillCustomFieldId',
        footer: "Foots",
        cnName: '单据自定义字段',
        name: 'BillCustomField',
        newTabEdit: false,
        url: "/BillCustomField/",
        sortName: "BillCustomFieldId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"BillInstanceId":"","Remark":""};
    const editFormOptions = [[{"title":"备注","field":"Remark"},
                               {"dataKey":"金蝶云星辰实例编码","data":[],"title":"单据实例","required":true,"field":"BillInstanceId","type":"select"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'BillCustomFieldId',title:'自定义字段表标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BillInstanceId',title:'单据实例',type:'string',bind:{ key:'金蝶云星辰实例编码',data:[]},width:180,require:true,align:'left'},
                       {field:'Remark',title:'备注',type:'string',width:180,align:'left'}];
    const detail =  {
                    cnName: '自定义字段明细',
                    table: 'BillCustomFieldDetail',
                    columns: [{field:'BillCustomFieldDetailId',title:'自定义字段明细标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BillCustomFieldId',title:'自定义字段表标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'FieldEntityKey',title:'字段实体Key',type:'string',width:180,readonly:true,edit:{type:'text'},require:true,align:'left'},
                       {field:'FieldDisplayName',title:'字段显示名称',type:'string',width:180,readonly:true,edit:{type:'text'},require:true,align:'left'},
                       {field:'FiledTypeId',title:'字段类型',type:'int',bind:{ key:'金蝶云星辰字段类型',data:[]},width:110,readonly:true,edit:{type:'select'},require:true,align:'left'},
                       {field:'FieldName',title:'字段名称',type:'string',width:180,readonly:true,edit:{type:'text'},require:true,align:'left'}],
                    sortName: 'BillCustomFieldDetailId',
                    key: 'BillCustomFieldDetailId'
                                            };
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}